package zut.cs.liziflower.service;

import com.baomidou.mybatisplus.extension.service.IService;
import zut.cs.liziflower.entity.Order;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xuwenke
 * @since 2022-05-26
 */
public interface IOrderService extends IService<Order> {

    int addOrder(Order order);//添加订单

    Order getOrder(Order order);//获取订单

    List<Order> getAllPaidOrders(Integer userid, Integer status);

    int updateStatus(Order order);

    //收货
    int updatedFinished(Integer orderid, Integer userid, Integer status);

    int deletePaid(Integer orderid, Integer userid);
}
